import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import Vant, { Toast } from 'vant'
import 'vant/lib/index.css'
var VueTouch = require('vue-touch')
Vue.use(VueTouch, { name: 'v-touch' })
Vue.config.productionTip = false

Vue.use(Vant)
Vue.prototype.$toash = Toast

// 引入mockjs
require('./mock/swiperdata')

// 如无必要 麻烦不要将vconsole放开上传tfs
import Vconsole from 'vconsole'
let vConsole = new Vconsole()
Vue.use(vConsole)

import { get, post, postJson, postFormData } from '@/request/http'
Vue.prototype.post = post
Vue.prototype.get = get
Vue.prototype.postJson = postJson
Vue.prototype.postFormData = postFormData
Vue.prototype.fetch = fetch

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
